"""
assert断言，只要不符合就是会报错，报错用例后续就停止执行了
用例算作失败
"""
"""
def test_get_event():
    print("查询发布会")
    actual_name = '小米16发布会'
    expected_name = '小米16发布会'
    assert actual_name == expected_name
def test_get_event2():
    print("查询发布会2")
    actual_name = '小米22'
    expected_name = '小米16发布会'
    assert actual_name in expected_name
def test_bool():
    print("断言布尔值")
    assert False == True
    assert False is True
def test_order():
    print("测试订单")
    # 断言订单编号
    assert 20220530110  == 20220530110
    # 断言订单状态
    assert '已付款' == '未付款'
    print("开始断言订单金额")
    # 断言订单金额
    assert 100 ==100
"""
import pytest
"""
pytest.assume断言：当识别代码断言报错后，仍会继续运行后面的代码
"""
def test_get_event():
    print("查询发布会")
    expected_name = '小米'
    actual_name = '小米发布会'
    assert expected_name in actual_name

def test_bool():
    print("断言布尔值")
    assert False == True
    assert False is True

def test_order():
    print("测试订单")
    # 断言订单编号
    pytest.assume(20220530110 == 20220530110)
    # 断言订单状态
    pytest.assume("已付款" == '未付款')
    print("开始断言订单金额")
    # 断言订单金额
    pytest.assume(100 == 100)








